{extends file="index.tpl"} 
{block name="page-content"}

	<div class="row-fluid">
		<div class="span12">
			<div class="block">
				<div class="head">
					<h2>Thêm App Message</h2>
					<ul class="buttons">
						<li>
							<a href="#" onClick="source('form_validation'); return false;">
								<div class="icon"><span class="ico-info"></span></div>
							</a>
						</li>
					</ul>
				</div>
				<form id="validate" method="POST" action="{$WEB_BASE_URL}/index.php?controller=appMessage&action=add">
					<div class="data-fluid">
						<div class="row-form">
							<div class="span2">App Name</div>
							<div class="span10">
								<select name="app_id" class="select" style="width: 100%;">
								{foreach from=$appNameArr item=appName}
									<option value="{$appName.id}">{$appName.name}</option>
								{/foreach}
								</select>
							</div>
						</div>
						
						<div class="row-form">
							<div class="span2">Đầu Số</div>
							<div class="span10">
								<select name="dau_so" class="select" style="width: 100%;">
									<option value="6086">6086</option>
									<option value="8100">8100</option>
								
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Cấu Pháp Đầu</div>
							<div class="span10">
								<select name="cu_phap_dau" class="select" style="width: 100%;">
									<option value="TG">TG</option>
									<option value="VIPLAY">VIPLAY</option>
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Cấu Pháp Cuối</div>
							<div class="span10">
								<input type="text" name="cu_phap_cuoi"/> 
							</div>
						</div>
						<div class="toolbar bottom tar">
							<div class="btn-group">
								<button class="btn btn-info" type="button" onClick="$('#validate').validationEngine('hide');">Hide prompts</button>
                                <button class="btn" type="submit">Thêm App Message</button>
                            </div>
                       	</div>
					</div>
					
				</form>
			</div>
		</div>
	
	</div>

{/block}

